<?php
	// print_r($homemessage);
?>

<div class="details">
	<div class="detailheaderimg">
		<img src="<?php echo $homemessage['user']['profile_image_url'] ?>/50" alt="" class = 'messageheader'>
		<span><?php echo $homemessage['user']['screen_name'] ?></span>
	</div>
	<div class = "messagecontent">
		<p>
			<?php echo $homemessage['text'] ?>
		</p>
	</div>

	<?php if(!empty($homemessage["retweeted_status"])): ?>
	<div class="retweetedbox">
		<img src="<?php echo $homemessage['retweeted_status']['user']['profile_image_url'] ?>/50" alt="" class = 'messageheader'>
		<span><?php echo $homemessage['retweeted_status']['user']['screen_name'] ;?></span>
		<div class="retweetedboxcontent">
			<p>
				<?php echo $homemessage['retweeted_status']['text'] ?>
			</p>
		</div>
	</div>
	<?php endif;?>

	<div class="comentbox">
		<?php if(!empty($coment['comments'])): ?>
			<?php foreach($coment['comments'] as $value ) :?>
				<div class="coment">
					<img src="<?php echo $value['user']['profile_image_url'] ?>" alt="">
					<span><?php echo $value['user']['screen_name'] ?></span>
					<p>
						<?php echo $value['text'] ?>
					</p>
				</div>
			<?php endforeach;?>
		<?php endif; ?>
	</div>

	<div id = "pinglun">
		<form action="<?php echo $this->create_url('sina/reply'); ?>" method = "POST">
			<input type="text" name = "pinglun">
			<input type="submit" name = "submit" value = "评论">
 			<input type="text" name = "mid" value = "<?php echo $homemessage['mid'] ?>">
		</form>
	</div>
</div>
